package com.gegong.imr.client.vbox.cmd;

import java.util.Map;

public interface IVBoxCmd {

    Progress execute(Object... params);

    String getName();


    class TimeOuts {

        static final int NONE = -1;
    }


    class Progress {
        public static final int RESULT_SUCCESSED = 1;
        public static final int RESULT_FAILURED = 0;


        boolean completed = false;
        int resultCode = RESULT_SUCCESSED;
        Throwable errorInfo;

        public boolean isCompleted() {
            return completed;
        }

        public int getResultCode() {
            return resultCode;
        }

        public Throwable getErrorInfo() {
            return errorInfo;
        }
    }

}
